"use strict";
{
    let num = 100;
    let str = '今天怎么阴天了~~';
    let me = {
        name: 'xiaohigh',
        age: 36,
        height: '180cm'
    };
    //声明一个变量
    let st = '哈哈哈';
    //获取接口所有键名的联合类型
    // keyof Person   getValue(me, 'abc')  key: 'name' | 'age' | 'height'
    function getValue(obj, key) {
        return obj[key];
    }
    getValue(me, 'age');
    //获取函数返回值类型
    let fn = (a, b) => a + b;
}
{
    axios.get('http://api.xiaohigh.com/heros');
}
{
    //内置对象的支持
    // let d = new Date();
    //支持 BOM 和 DOM
    // window.addEventListener('resize', () => {
    // });
    // document.querySelector('#root');
}
{
    let a = {
        name: '英菲克',
        color: '浅黄色'
    };
}
